package com.linshengjian;

import com.linshengjian.power.service.IResourcesService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
//@EnableSwagger2Doc
public class Application {

	public static void main(String[] args) {

		SpringApplication application = new SpringApplication(Application.class);
		ApplicationContext appctx =application.run(args);

		IResourcesService service = (IResourcesService) appctx.getBean("resourcesService");
		service.refresh();

//		Documentation documentation = documentationCache.documentationByGroup("default");
//		System.out.println(documentation);

//		SpringApplication.run(Application.class, args);
	}
}
